<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>links</title>
</head>

<body>
<?
require_once '../inc.php';
$filename=$_REQUEST['filename'];
 
class Fruit
{
	static function Foo ( $class = __CLASS__ )
   	{
       	call_user_func(array($class, 'Color'));
   	}
}

class Apple extends Fruit
{
   	static function Foo ( $class = __CLASS__ )
   	{
       	parent::Foo($class);
   	}

   	static function Color()
   	{
       	echo "Apple's color is red";
   	}
}

Apple::Foo(); // This time it works.
?>

?>
</body>
</html>